package fr.gestionimmoejb.model;

import java.io.Serializable;
import java.sql.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Reservation implements Serializable {
	@Id
	private Integer id;

	private Date dateReservation;

	private Date dateEntre;

	private Date dateSortie;

	@ManyToOne
	@JoinColumn(name="idClient")
	private Client idClient;

	@ManyToOne
	@JoinColumn(name="idLogement")
	private Logement idLogement;

	private static final long serialVersionUID = 1L;

	public Reservation() {
		super();
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getDateReservation() {
		return this.dateReservation;
	}

	public void setDateReservation(Date datereservation) {
		this.dateReservation = datereservation;
	}

	public Date getDateEntre() {
		return this.dateEntre;
	}

	public void setDateEntre(Date dateentre) {
		this.dateEntre = dateentre;
	}

	public Date getDateSortie() {
		return this.dateSortie;
	}

	public void setDateSortie(Date datesortie) {
		this.dateSortie = datesortie;
	}

	public Client getIdClient() {
		return this.idClient;
	}

	public void setIdClient(Client idclient) {
		this.idClient = idclient;
	}

	public Logement getIdLogement() {
		return this.idLogement;
	}

	public void setIdLogement(Logement idlogement) {
		this.idLogement = idlogement;
	}

}
